package com.djz.stuinfomge.entity;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable {

	// Fields

	public Speciality getSpeciality() {
		return speciality;
	}

	public void setSpeciality(Speciality speciality) {
		this.speciality = speciality;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Class getSchoolClass() {
		return schoolClass;
	}

	public void setSchoolClass(Class schoolClass) {
		this.schoolClass = schoolClass;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	private int id;
	private String name;
	// 学号、教师编号、管理员编号，这里先预留着，不使用
	private String stuNum;
	private Short gender;
	private Timestamp birthday;
	private String classId;
	private Class schoolClass;
	private String comment;
	private String familyAddr;
	private String phone;
	private Timestamp matriculationDate;
	private String password;
	private Date createtime;
	private Speciality speciality;

	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(String name) {
		this.name = name;
	}

	/** full constructor */
	public Student(String name, String stuNum, Short gender,
			Timestamp birthday, String classId, String comment,
			String familyAddr, String phone, Timestamp matriculationDate,
			String password) {
		this.name = name;
		this.stuNum = stuNum;
		this.gender = gender;
		this.birthday = birthday;
		this.classId = classId;
		this.comment = comment;
		this.familyAddr = familyAddr;
		this.phone = phone;
		this.matriculationDate = matriculationDate;
		this.password = password;
	}

	// Property accessors

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStuNum() {
		return this.stuNum;
	}

	public void setStuNum(String stuNum) {
		this.stuNum = stuNum;
	}

	public Short getGender() {
		return this.gender;
	}

	public void setGender(Short gender) {
		this.gender = gender;
	}

	public Timestamp getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}

	public String getClassId() {
		return this.classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getFamilyAddr() {
		return this.familyAddr;
	}

	public void setFamilyAddr(String familyAddr) {
		this.familyAddr = familyAddr;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Timestamp getMatriculationDate() {
		return this.matriculationDate;
	}

	public void setMatriculationDate(Timestamp matriculationDate) {
		this.matriculationDate = matriculationDate;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
